const router = require('koa-router')()
const { getPetList, queryPetList, adoptRelease, vetoRelease } = require("../controllers/petController")

router.prefix('/pet')

// 宠物信息列表
router.get("/list", getPetList)
// 查询宠物信息列表
router.get("/query", queryPetList)
// 通过宠物发布
router.post("/adopt", adoptRelease)
// 否决宠物发布
router.post("/veto", vetoRelease)

module.exports = router